import easyMirai

if __name__ == '__main__':
    m = easyMirai.Mirai("http://127.0.0.1", "8080", "INITKEYxWntQVgk", "2508417507", debug=3)
    # m.version()
    # m.getSession()
    # m.bindSession()
    # m.getCountMessage()
    # m.getFetchLatestMessage()
    print(m.getFriendList())
    # m.getGroupList()
    # print(m.getMemberList("862453481"))
    # print(m.botProfile())
    # msg = {"type": "Plain", "text": "你好啦啦啦啦～"}
    # ids = m.sendFriendMessage(msg=msg, tar="3177045556")
    # ids = m.sendGroupMessage(msg=msg, tar="862453481")
    # ids = ids["messageId"]
    # print(ids)
    # print(m.sendGroupMessage(msg=msg, tar="862453481"))
    # print(m.getMemberProfile("862453481", "3177045556"))
    # print(m.muteMember("862453481", "377694143", "10"))
    # m.delay()
    # m.unMuteMember("862453481", "377694143")
    # m.kick("862453481", "377694143", "你被移除啦～")
    # m.muteAll("862453481")
    # m.unMuteAll("862453481")
    # print(m.sendNudge("3177045556", "3177045556", "Friend"))
    # print(m.reCall(str(ids)))
    # print(m.uploadImage("Group", "./8CCD5AA34CF0EC837F64B1857121B58F.png"))
    # print(m.deleteFriend("3177045556"))
    # print(m.session)
    # print(m.uploadVoice("./this.silk"))
    # print(m.setEssence(str(ids)))
    # print(m.getGroupConfig("862453481"))
    # print(m.editGroupConfig("862453481", "这是一个测试群", confessTalk=True))
    print(m.getMemberInfo("862453481", "377694143"))
    # print(m.uploadFile("862453481", "./this.mp3"))
    # print(m.Formats())
    # m.releaseSession()
